home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ 2⁄23⁄90 / 0719-Re Jump Table size-Feb90 < prev    next >
Encoding:
Text File  |  1990-02-23  |  1.6 KB  |  45 lines  |  [TEXT/GEOL]

  1. Item forwarded  by  A33          to A34
  2.  
  3. Item    2574245                         19-Feb-90        09:55PST
  4.  
  5. From:   ROSENSTEIN1                     Rosenstein, Larry
  6.  
  7. To:     AUST0334                        AUDev - CRIA, Canberra, ACT,IDV
  8.         MACAPP.TECH$                    MacApp Technical
  9.  
  10. Sub:    RE>Jump Table size
  11.  
  12. Attn: AUDev - CRIA, Canberra, ACT,ID
  13. Attn:   MacApp Tech
  14. SentBy: Larry Rosenstein
  15. Date   2/19/90
  16. Subject    RE>Jump Table size
  17. From   Larry Rosenstein
  18. To AUDev - CRIA, Canberra, ACT,ID,   MacApp Tech
  19.  
  20.          Reply to:   RE>Jump Table size
  21. The jump table is fixed at 4096 entries (there's 32K of RAM allocated to it
  22. and each entry requires 8 bytes).
  23.  
  24. I think you can find out how many entries you are using with the -p option to
  25. Link.
  26.  
  27. Changing segmentation will affect the number of jump table entries.  For
  28. normal procedures and functions, a jump table entry isn't needed if all calls
  29. to a routine are from the same segment.  If there are any calls from other
  30. segments then a JT entry will be needed.
  31.  
  32. As for inline code, you should realize that it isn't possible to inline method
  33. calls (aka C++ virtual function calls), because of the extra dispatching
  34. involved.  It could be done for regular procedure calls, but I don't think
  35. these are used very much, and if they are a bottleneck they can be written in
  36. assembler.  (If you really need to, you can turn these assembler routines into
  37. inline function by entering the hex instructions.)
  38.  
  39. In C++ you can make virtual functions inline, but this has no effect.
  40. Actually, inline is just a suggestion to the compiler; it doesn't have to
  41. honor it.
  42.  
  43. Larry Rosenstein
  44.  
  45.